//index.js
//获取应用实例
Page({
  data: {
    interval:3000,
    imgAdUrls:[
      '../../images/ad2.png',
      '../../images/ad3.png',
      '../../images/ad4.png'
    ],
    menu:[
      {url:'../language/index?name=C#',
       text:'C#',
       icon:'../../images/language/CSharp.jpg'
      },
      {url:'../exam/index?name=Java',
       text:'Java',
       icon:'../../images/language/java.jpg'
      },
      {url:'../exam/index?name=js',
       text:'js',
       icon:'../../images/language/js.jpg'
      },
      {url:'../exam/index?name=python',
       text:'python',
       icon:'../../images/language/python.jpg'
      }
    ]
  },
  onLoad: function () {
  },
  searchSubject:function(){
    this.setData({subjectItems:['.Net','Java','Python','C++','Ruby','前端']})
    this.setData({subjectDisplay:'block'})
  },
  selectSubject:function(e){
      console.log(e)
      e.target.id
      wx.showToast({
      title:'你选择了'+e.target.id,
      icon: 'success',
      duration: 2000
    })
  }
})
